import request from '@/utils/request'

export const folderList = function(params){
  return request({
    url: '/folder/folder_list',
    method: 'get',
    params: params,
  })
}


export const folderAdd = function(params){
  return request({
    url: '/folder/add',
    method: 'POST',
    data: params,
  })
}

export const folderDel = function(params){
  return request({
    url: '/folder/del',
    method: 'POST',
    data: params,
  })
}

export const folderEdit = function(params){
  return request({
    url: '/folder/edit',
    method: 'POST',
    data: params,
  })
}

export const galleryDel = function(params){
  return request({
    url: '/attachment/del',
    method: 'POST',
    data: params,
  })
}

export const galleryEdit = function(params){
  return request({
    url: '/attachment/edit',
    method: 'POST',
    data: params,
  })
}

export const galleryList = function(params){
  return request({
    url: '/attachment/list',
    method: 'get',
    params: params,
  })
}

export const imageList = function(params){
  return request({
    url: '/attachment/get_image_info_list',
    method: 'get',
    params: params,
  })
}

export const imageUpload = function(params){
  return request({
    url: '/general/upload_map_storage',
    method: 'post',
    data: params,
  })
}


export const galleryAdd = function(params){
  return request({
    url: '/attachment/add',
    method: 'POST',
    data: params,
  })
}

export const Export = function(params){
  return request({
    url: '/attachment/images_download_url',
    method: 'get',
    params: params,
  })
}
